From 0a44f0132bbacece5313a510eb2ea7b365a951be Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Mon, 3 Dec 2018 00:46:02 -0600 Subject: [PATCH] Warning fix in locus --- mtk_locus.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtk_locus.cc b/mtk_locus.cc index ab7f4335a..23c322a0c 100644 --- a/mtk_locus.cc +++ b/mtk_locus.cc @@ -325,7 +325,6 @@ process_packet() void process_pmtklox() { - int hexval; uint8_t fixbytes[16]; static Waypoint* trkpt; static Waypoint* waypt; @@ -384,6 +383,7 @@ process_pmtklox() return; } for (int i = 0; i<4; i++) { + unsigned int hexval; sscanf(&token[i * 2], "%2x", &hexval); fixbytes[bytenum++] = hexval; calculated_checksum ^= hexval; -- 2.30.2